package cn.edu.scau.sec.caixiaoqing.client;

import cn.edu.scau.sec.caixiaoqing.adapter.*;

public class AdapterClient {
    public static void main(String[] args) {
        Adaptee adaptee = new Adaptee();

        Target objectDotAdapter = new ObjectDotAdapter(adaptee);
        objectDotAdapter.printDate("2020.11.22");

        Target objectLineAdapter = new ObjectLineAdapter(adaptee);
        objectLineAdapter.printDate("2020-11-23");

        Target classAdapter = new ClassAdapter();
        classAdapter.printDate("2020.11.24");
    }
}
